import axios from '../http'

// 添加试题接口
function addExam(params) {
    return axios.post("/exam/questions", params)
}

// 获取所有的考试类型
function getExamType() {
    return axios.get("/exam/examType")
}

// 获取所有的课程
function getSubject() {
    return axios.get("/exam/subject")
}

// 获取所有的试题类型
function getQuestionsType() {
    return axios.get("/exam/getQuestionsType")
}

// 按条件获取试题
function getCondition(params) {
    return axios.get("/exam/questions/condition", {
        params
    })
}


export {
    addExam,
    getExamType,
    getSubject,
    getQuestionsType,
    getCondition
}